<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$title} 管理中心 - {$adminproplist} </title>
<meta name="robots" content="noindex, nofollow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="styles/general.css" rel="stylesheet" type="text/css" />
<link href="styles/main.css" rel="stylesheet" type="text/css" />
<link href="styles/page.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/action.js"></script>
</head>
<body>
<h1>
<span class="action-span1">{$title} 管理中心  - {$adminproplist} </span>
<div style="clear:both"></div>
</h1>
<form method="post" action="proplist.php" name="theForm">
<!-- start ad position list -->
<input type="text" name="selectvalue" id="selectvalue" value = "{$namevalue}">
<select id="stylename" name="stylename">
<option value="0">请选择</option>
<option value="1" {if $selectstyle == "1"}selected{/if} >ID</option>
<option value="2" {if $selectstyle == "2"}selected{/if} >道具名称</option>
<input type="button" value="提交" onclick="propcheck();">
<input type="hidden" value="searchuser" name="act">
</select>
</from>
<div class="list-div" id="listDiv">
<table width="100%" cellspacing="1" cellpadding="2" id="list-table">
  <tr>
    <th width="5%">道具ID</th>
    <th width="10%">道具名称</th>
    <th width="5%">道具价格（{$moneyname}）</th>
    <th width="5%">排序</th>
    <th width="65%">功能介绍</th>
    <th width="10%">操作</th>
  </tr>
  {if $proparray}
  {if $act =='all'}
  {section name=val loop=$proparray}
  <tr>
	<td>{$proparray[val].id}</td>
	<td>{$proparray[val].title}</td>
	<td>{$proparray[val].money}</td>
	<td><input type="text" value="{$proparray[val].rank}" onblur="uprank({$proparray[val].id},this.value,'proplist')" size="6"></a></td>
	<td>{$proparray[val].summary}</td>
	<td align="center"><a href="proplist.php?act=del&id={$proparray[val].id}" title="删除">删除</a></td>
  </tr>
  {/section}
  {else}
  <tr>
	<td>{$proparray.id}</td>
	<td>{$proparray.title}</td>
	<td>{$proparray.money}</td>
	<td><input type="text" value="{$proparray.rank}" onblur="uprank({$proparray.id},this.value,'proplist')" size="6"></a></td>
	<td>{$proparray.summary}</td>
	<td align="center">删除</td>
  </tr>
  {/if}
  {else}
  <tr>
	<td colspan="5">没有数据</td>
  </tr>
  {/if}
  
  </table>
 {include file="./pageclass.tpl"}
</div>
</body>
</html>
